<div>
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">
        筛选商机
        <button class="btn btn-info btn-sm" id="search_list_btn" data-toggle="modal" data-target="#searchForm">自定义搜索项</button>
      </h3>
		</div>
		<div class="panel-body">
			<div class="form-horizontal search-form">
				<info-source dependents="searchData.info_source" ng-if="searchFormShow.info_source==1"></info-source>
				<ul class="form-group search-list">
					<li class="row_3" ng-if="searchFormShow.failure_reason_id==1">
						<label class="control-label">商机分类：</label>
						<div class="input-wrap">
							<business-class-select current-class="searchData.failure_reason_id"></business-class-select>
						</div>
					</li>
					<li class="row_4" ng-if="searchFormShow.invite==1">
						<label class=" control-label">是否邀约：</label>
						<div class="input-wrap">
							<select name="invite" class="form-control" ng-model="searchData.invite">
								<option value="">请选择</option>
								<option value="1">已邀约</option>
								<option value="0">未邀约</option>
							</select>
						</div>
					</li>
					<li class="row_5" ng-if="searchFormShow.visit==1">
						<label class="control-label">是否上门：</label>
						<div class="input-wrap">
							<select name="visit" class="form-control" ng-model="searchData.visit">
								<option value="">请选择</option>
								<option value="1">已上门</option>
								<option value="0">未上门</option>
							</select>
						</div>
					</li>
					<li class="row_6" ng-if="searchFormShow.positioning==1">
						<label class=" control-label">是否定位：</label>
						<div class="input-wrap">
							<select name="positioning" class="form-control" ng-model="searchData.positioning">
								<option value="">请选择</option>
								<option value="0">未定位</option>
								<option value="1">已定位</option>
							</select>
						</div>
					</li>
					<li class="row_7" ng-if="searchFormShow.sign==1">
						<label class=" control-label">是否签约：</label>
						<div class="input-wrap">
							<select name="sign" class="form-control" ng-model="searchData.sign">
								<option value="">请选择</option>
								<option value="1">已签约</option>
								<option value="0">未签约</option>
							</select>
						</div>
					</li>
					<li class="row_8" ng-if="searchFormShow.sign_out==1">
						<label class=" control-label">是否退签：</label>
						<div class="input-wrap">
							<select name="sign_out" class="form-control" ng-model="searchData.sign_out">
								<option value="">请选择</option>
								<option value="1">已退签</option>
								<option value="0">未退签</option>
							</select>
						</div>
					</li>
					<li class="row_9" ng-if="searchFormShow.channel_manager_id==1">
						<label class=" control-label">渠道经理：</label>
						<div class="input-wrap">
							<user-select current-id="searchData.channel_manager_id" company-id="{{searchData.channel_manager_id}}"></user-select>
						</div>
					</li>
					<li class="row_10" ng-if="searchFormShow.consultant_id==1">
						<label class=" control-label">咨 询 师：</label>
						<div class="input-wrap">
							<user-select current-id="searchData.consultant_id" company-id="{{searchData.branch_company_id}}"></user-select>
						</div>
					</li>
					<li class="row_11" ng-if="searchFormShow.branch_company_id==1">
						<label class=" control-label">分公司：</label>
						<div class="input-wrap">
							<company-select current-id="searchData.branch_company_id"></company-select>
						</div>
					</li>
					<li class="row_12" ng-if="searchFormShow.education==1">
						<label class=" control-label">学历：</label>
						<div class="input-wrap">
							<select name="education" class="form-control" ng-model="searchData.education">
								<option value="">请选择</option>
								<option value="小学">小学</option>
								<option value="初中">初中</option>
								<option value="中专">中专</option>
								<option value="高中">高中</option>
								<option value="专科">专科</option>
								<option value="本科">本科</option>
								<option value="硕士研究生">硕士研究生</option>
								<option value="博士研究生">博士研究生</option>
							</select>
						</div>
					</li>
					<li class="row_13" ng-if="searchFormShow.name==1">
						<label class="control-label">姓&nbsp;&nbsp;名：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="name" ng-model="searchData.name" />
						</div>
					</li>
					<li class="row_14" ng-if="searchFormShow.email==1">
						<label class="control-label">邮&nbsp;&nbsp;箱：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="email" ng-model="searchData.email" />
						</div>
					</li>
					<li class="row_15" ng-if="searchFormShow.phone==1">
						<label class="control-label">手&nbsp;&nbsp;机：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="phone" ng-model="searchData.phone" />
						</div>
					</li>
					<li class="row_16" ng-if="searchFormShow.qq==1">
						<label class="control-label">Q&nbsp;&nbsp;&nbsp;Q：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="qq" ng-model="searchData.qq" />
						</div>
					</li>
					<li class="row_17" ng-if="searchFormShow.id==1">
						<label class="control-label">商&nbsp;机ID：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="business_id" ng-model="searchData.id" />
						</div>
					</li>
					<li class="row_18" ng-if="searchFormShow.order_id==1">
						<label class="control-label">订 单 号：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="order" ng-model="searchData.order" />
						</div>
					</li>
					<li class="row_19" ng-if="searchFormShow.school==1">
						<label class="control-label">学 校 ：</label>
						<div class="input-wrap">
							<input type="text" class="form-control" name="school" ng-model="searchData.school" />
						</div>
					</li>
				</ul>
				<div class="submit-box">
					<button type="button" class="btn btn-primary" ng-click="searchBusiness()">开始筛选</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 搜索框结束 -->
	<!-- 自定义搜索项模态框 -->
	<div class="modal fade" id="searchForm" tabindex="-1" role="dialog" aria-labelledby="searchFormData" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="searchFormData">自定义搜索项</h4>
				</div>
				<div class="modal-body">
					<ul class="custom_search_list row">
						<!--<li><label><input type="checkbox" value="1" <?php if(!in_array('1', $customSearchList)){echo "checked='true'";}?>>品牌</label></li>-->
						<li class="col-sm-2"><label><input type="checkbox" value="2" ng-model="searchFormData.info_source" ng-true-value="1" ng-false-value="0">信息来源</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="3" ng-model="searchFormData.failure_reason_id" ng-true-value="1" ng-false-value="0">商机分类</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="4" ng-model="searchFormData.invite" ng-true-value="1" ng-false-value="0">是否邀约</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="5" ng-model="searchFormData.visit" ng-true-value="1" ng-false-value="0">是否上门</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="6" ng-model="searchFormData.positioning" ng-true-value="1" ng-false-value="0">是否定位</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="7" ng-model="searchFormData.sign" ng-true-value="1" ng-false-value="0">是否签约</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="8" ng-model="searchFormData.sign_out" ng-true-value="1" ng-false-value="0">是否退签</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="9" ng-model="searchFormData.channel_manager_id" ng-true-value="1" ng-false-value="0">渠道经理</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="10" ng-model="searchFormData.consultant_id" ng-true-value="1" ng-false-value="0">咨询师</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="11" ng-model="searchFormData.branch_company_id" ng-true-value="1" ng-false-value="0">分公司</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="12" ng-model="searchFormData.education" ng-true-value="1" ng-false-value="0">学历</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="13" ng-model="searchFormData.name" ng-true-value="1" ng-false-value="0">姓名</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="14" ng-model="searchFormData.email" ng-true-value="1" ng-false-value="0">邮箱</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="15" ng-model="searchFormData.phone" ng-true-value="1" ng-false-value="0">手机</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="16" ng-model="searchFormData.qq" ng-true-value="1" ng-false-value="0">QQ</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="17" ng-model="searchFormData.id" ng-true-value="1" ng-false-value="0">商机ID</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="18" ng-model="searchFormData.order_id" ng-true-value="1" ng-false-value="0">订单号</label></li>
						<li class="col-sm-2"><label><input type="checkbox" value="19" ng-model="searchFormData.school" ng-true-value="1" ng-false-value="0">学校</label></li>
					</ul>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-primary" ng-click="setSearchForm()">确定</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</div>